package com.heihei;

import com.heihei.combine.Combine;
import com.heihei.combine.CombineImgPackage;
import com.heihei.config.ConfigProperties;
import com.heihei.constant.MessageConstant;
import com.heihei.util.FileUtilF;

import java.io.IOException;

public class Start {
    public static void main(String[] args) throws IOException, InterruptedException {
        System.out.println(">> -1. 退出");
        System.out.println(">>  0. 刷新配置");
        System.out.println(">>  1. 开启工具箱");
        System.out.println(">>  2. 开启图包/视频处理模式");
        String s = FileUtilF.getSc().nextLine();
        Integer flag = Integer.valueOf(s);
        switch (flag) {
            case -1:
                System.out.println("退出");
                return;
            case 0:
                ConfigProperties.updateProperties();
                break;
            case 1:
                System.out.println("开启工具箱：");
                Combine.start();
                break;
            case 2:
                System.out.println("开启图包处理模式：");
                CombineImgPackage.start();
                break;
            default:
                System.out.println(MessageConstant.PARAM_ILLEGAL);
        }

    }
}